package cn.hl.hm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.hl.hm.dao.DriverRouteMapper;
import cn.hl.hm.entity.DriverRoute;
import cn.hl.hm.service.DriverRouteService;
@Service
public class DriverRouteServiceImpl implements DriverRouteService{
	@Autowired
	private DriverRouteMapper driverRouteMapper;
	@Override
	public List<DriverRoute> selectDriverRoute(DriverRoute driver) {
		// TODO Auto-generated method stub
		return driverRouteMapper.selectDriverRoute(driver);
	}

	@Override
	public int addDriverRoute(DriverRoute driver) {
		// TODO Auto-generated method stub
		return driverRouteMapper.insertSelective(driver);
	}

	@Override
	public int updateDriverRoute(DriverRoute driver) {
		// TODO Auto-generated method stub
		return driverRouteMapper.updateByPrimaryKeySelective(driver);
	}

}
